<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class StorePayType extends Model
{
    protected $table = "c_store_pay_types";

    public function getStorePayType($filter)
    {
        $w[] = ['cate_type','=',$filter['cate_type']];
        $res = $this->where($w)->orderBy("type", "asc")->orderBy("id", "desc")->get();
        if (!empty($res)) {
            return $res->toArray();
        }
        return [];
    }
}
